package com.qf.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class RequestMappingUtils {
    private static Map<String, String> urlMethodMap = new HashMap<>();
    private static Map<String, Object> targetObjectMap = new HashMap<>();


    public static String getMethod(String key){
        return urlMethodMap.get(key);
    }
    public static String addMethod(String uri,String methodName){

        return urlMethodMap.put(uri,methodName);
    }
    public static Object getTarget(String uri){

        return targetObjectMap.get(uri);
    }
    public static Object addTarget(String uri,Object target){
        return targetObjectMap.put(uri, target);
    }

}
